﻿using Tszy.Unlimited.Base.Infrastructure.Domain;

namespace Tszy.Examples.Domain.Services.Users.Domain;

public class DomainUser : AggregateRoot<Guid>
{
    public DomainUser(string name) : base(Guid.NewGuid(), DateTime.Now)
    {
        Name = name;
        ApplyEvent(new UserCreateEvent());
    }

    public string Name { get; private set; } = string.Empty;
}